package 定时器;

import java.util.*;

public class time {
    public static void main(String[] args){
        Timer timer = new Timer("1");
        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {
                System.out.println("2333");
            }
        };
        Date date = new Date();
//        timer.schedule(timerTask,date,5000);
        List<Integer> list = new ArrayList<Integer>();
        list.add(1);
        list.add(3);
        list.add(2);
        list.sort(new Comparator() {
            @Override
            public int compare(Object o1, Object o2) {
                return Integer.parseInt(String.valueOf(o1))>Integer.parseInt(String.valueOf(o2))?Integer.parseInt(String.valueOf(o1)):Integer.parseInt(String.valueOf(o2));
            }

            @Override
            public boolean equals(Object obj) {
                return false;
            }
        }); 
        System.out.println(list);
    }
}
